import request from "@/utils/request";


export function reqOrdersInfo(pageNo,pageSize){
  return request({
    url:`/api/orders?pageNo=${pageNo}&pageSize=${pageSize}`,
    method:"get"
  })
}

export function searchOrder(keyword){
    return request({
        url:`/api/order/search?keyword=${keyword}`,
        method:"get"
    })
}

export function handleOrder(_id,data) {
  return request({
    url: `/api/order/${_id}`,
    method: "patch",
    data,
  });
}